import request from '@/utils/request'

// 查询店员用户列表
export function listClerk_user(query) {
  return request({
    url: '/store/clerk_user/list',
    method: 'get',
    params: query
  })
}

// 查询店员用户详细
export function getClerk_user(id) {
  return request({
    url: '/store/clerk_user/' + id,
    method: 'get'
  })
}

// 新增店员用户
export function addClerk_user(data) {
  return request({
    url: '/store/clerk_user',
    method: 'post',
    data: data
  })
}

// 修改店员用户
export function updateClerk_user(data) {
  return request({
    url: '/store/clerk_user',
    method: 'put',
    data: data
  })
}

// 删除店员用户
export function delClerk_user(id) {
  return request({
    url: '/store/clerk_user/' + id,
    method: 'delete'
  })
}

// 导出店员用户
export function exportClerk_user(query) {
  return request({
    url: '/store/clerk_user/export',
    method: 'get',
    params: query
  })
}